package ai.people.netmon.framework.domain.telegram.entity;

import java.lang.Long;
import java.lang.String;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xing.wei
 * @since 2022-01-06 17:07:14
 */
@TableName(value = "v_telegram_messages", schema = "telegram")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = false)
public class VTelegramMessages implements Serializable {

    private static final long serialVersionUID=1L;

    
    @TableField(value = "id")
    private Long id;

    
    @TableField(value = "message")
    private String message;

    
    @TableField(value = "reply_to_msg_id")
    private Long replyToMsgId;

    
    @TableField(value = "sender_id")
    private Long senderId;

    
    @TableField(value = "chat_id")
    private Long chatId;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @TableField(value = "date")
    private Date date;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @TableField(value = "ts")
    private Date ts;

    
    @TableField(value = "user_name")
    private String userName;

    
    @TableField(value = "group_name")
    private String groupName;

}